#ifndef URLENCODE2_H
#define URLENCODE2_H

#include <Arduino.h>

/**
 * Determines when encoding is required for a character.
 * @param c, a character within the string.
 * @returns True if the character should be used without encoding.
 */
bool includeChar(char c);

/**
 * Percent-encodes a string.
 * @param msg, a UTF-8 string to encode.
 * @returns Percent-encoded string.
 */
char* urlEncode(char *msg, int resultLength);

#endif
